package com.qqtech.qquan.mall.dao;

import com.qqtech.core.frame.dao.BaseDao;
import com.qqtech.qquan.mall.model.*;

public interface MallProductSpecDao extends BaseDao<MallProductSpec> {

	/**
     * 减少库存量
     *
     * @param specId
     * @param quantity
     * @return
     */
    int reduceStock(int specId, int quantity);

    /**
     * 增加库存量(订单取消时执行)
     * @param specId
     * @param quantity
     * @return
     */
    int addStock(int specId, int quantity);
}
